/*
 * @(#)companyServiceImpl.java 2013-4-10 ����01:36:55 Order
 */
package com.dingtalk.dingbotmgr.service.impl;

import java.util.List;

import javax.annotation.Resource;

import com.dingtalk.dingbotmgr.dao.BaseDao;
import com.dingtalk.dingbotmgr.dao.CompanyDao;
import com.dingtalk.dingbotmgr.model.Company;
import com.dingtalk.dingbotmgr.model.Company.Type;
import com.dingtalk.dingbotmgr.service.CompanyService;
import org.springframework.stereotype.Component;


/**
 * companyServiceImpl
 *
 * @author wang
 * @version 1.0
 */
@Component("companyService")
public class CompanyServiceImpl extends BaseServiceImpl<Company> implements CompanyService {

    @Resource(name = "companyDao")
    private CompanyDao companyDao;


    @Override
    protected BaseDao<Company> getBaseDao() {
        return companyDao;
    }

    @Override
    public List<Company> listByType(Type type) {
        return companyDao.listByType(type);
    }
}
